/**
 * 导入自定义组件
 */

import app from "../vue";

const components = import.meta.glob("@/dt-lib/components/*.vue", {eager: true})

// console.log('components', components)

for (let [key, value] of Object.entries(components)) {
    const keyArr: string[] = key.replace("./", "").split("/");
    const lastFileName = keyArr[keyArr.length - 1].split(".")[0];
    app.component(value.default.name || value.default.__name || lastFileName, value.default);
}
